import { http } from '@/plugins'
import { SYSTEM_URL } from '@/apis'

const baseURL = `${SYSTEM_URL}/easyExcel`

export default {
  /**
   * 查询Excel数据
   * @param businessId
   * @returns {AxiosPromise}
   */
  selectExcelList (businessId) {
    return http({
      url: `${baseURL}/selectExcelList/${businessId}`,
      method: 'GET'
    })
  },

  /**
   * 更新
   * @param data
   * @returns {AxiosPromise}
   */
  update (data) {
    return http({
      url: `${baseURL}/updateEasyExcel`,
      method: 'POST',
      data
    })
  }
}
